package com.liqing.movecomment.util;

import com.github.pagehelper.PageInfo;
import org.springframework.beans.BeanUtils;

import java.util.List;


public class SwapePageUtil {


    public static <T> PageInfo<T> swapePage(List list, List<T> voList) {
        PageInfo<T> pageInfo = new PageInfo<>();
        BeanUtils.copyProperties(PageInfo.of(list), pageInfo);
        pageInfo.setList(voList);
        return pageInfo;
    }


}
